<?php

namespace common\rest\base;

/**
 * WxException
 *
 * @author Ben Bi<bennybi@qq.com>
 * 
 */
class WxException extends \Exception {

    public $data;
    public $extraData;

    /**
     * Constructor.
     * @param int $status HTTP status code, such as 404, 500, etc.
     * @param string $message error message
     * @param int $code error code
     * @param \Exception $previous The previous exception used for the exception chaining.
     */
    public function __construct($message = null, $code = 0, $data = null, $extraData = null, \Exception $previous = null) {
        $this->data = $data;
        $this->extraData = $extraData;
        parent::__construct($message, $code, $previous);
    }

}
